package com.sq.partner.manager.dao.impl;

import com.sq.partner.manager.dao.AochuangDao;
import com.sq.partner.manager.mybatis.model.AochuangVo;
import com.sq.partner.manager.util.Page;
import org.springframework.stereotype.Repository;

import java.util.*;

@Repository
public class AochuangDaoImpl extends BaseDaoImpl implements AochuangDao {
    @Override
    public Page queryAochuangInfo(Page page) throws Exception {
        Map<String,Object> map = (Map<String, Object>) page.getType();
        page.setTotal((Integer)this.query("queryAochuangInfoCountByMap", map));
        List<AochuangVo> list = queryList("queryAochuangInfo", map);
        page.setData(list);
        return page;
    }

    @Override
    public List queryOrderDetaiByPolno(String polno) throws Exception {
        List<AochuangVo> list = queryList("queryOrderDetaiByPolno", polno);
        return list;
    }
}
